Skip to content

Added null check to EMAFilter#7417

Merged
DenizAltunkapan merged 1 commit intoTheAlgorithms:masterfrom
Shalinihr1402:shals-fix
May 9, 2026
Merged

Added null check to EMAFilter#7417
DenizAltunkapan merged 1 commit intoTheAlgorithms:masterfrom
Shalinihr1402:shals-fix

Conversation

@Shalinihr1402
Copy link
Copy Markdown
Contributor

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@Shalinihr1402
Copy link
Copy Markdown
Contributor Author

Added null check handling in EMAFilter to prevent NullPointerException when audioSignal is null.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.53%. Comparing base (54341c1) to head (cb47e48).

Files with missing lines Patch % Lines
...java/com/thealgorithms/audiofilters/EMAFilter.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7417   +/-   ##
=========================================
  Coverage     79.53%   79.53%           
- Complexity     7175     7177    +2     
=========================================
  Files           798      798           
  Lines         23474    23474           
  Branches       4617     4617           
=========================================
  Hits          18670    18670           
  Misses         4055     4055           
  Partials        749      749           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DenizAltunkapan DenizAltunkapan merged commit e814d97 into TheAlgorithms:master May 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants